package u12.ejerciciosObserver;

public class AlumnoIngles implements IAlumno{
	private String name;
	private Profesor p;
	public AlumnoIngles(String name, Profesor p){
		this.name=name;
		this.p=p;
	}
	public void sayName( ){
		System.out.println("Hi, my name is "+this.name+" y mi profesor es "+p.getNombre());
	}
	@Override
	public void nombrate() {
		sayName();
	}
}
